﻿namespace Cos.Core.Model.Blog
{
    using System;
    using System.ComponentModel.DataAnnotations;

    public class Article : DomainModelBase
    {
        [Required(AllowEmptyStrings = false)]
        public String Title { get; set; }

        [Required(AllowEmptyStrings = false)]
        public String Text { get; set; }

        public DateTime LastModified { get; set; }

        /*[Required]
        public IEnumerable<Comment> Comments { get; set; }*/

        [Required(AllowEmptyStrings = false)]
        public string AuthorId { get; set; }

        [Required(AllowEmptyStrings = false)]
        public string AuthorFirstName { get; set; }

        [Required(AllowEmptyStrings = false)]
        public string AuthorLastName { get; set; }

        [Required]
        public DateTime CreationDate { get; set; }

        [Required]
        public string CultureCode { get; set; }

        /*[Required]
        public IEnumerable<Tag> Tags { get; set; }*/

        [Required]
        public int BlogId { get; set; }
        
        public int Id { get; set; }

        public string Teaser { get; set; }
    }
}
